<link href="<?php echo DOMAIN; ?>/css/style.css" rel="stylesheet" type="text/css" />
<!-- CSS - Styles -->
<link href="<?php echo DOMAIN; ?>/css/base.css" rel="stylesheet" type="text/css" />
<link href="<?php echo DOMAIN; ?>/css/forms.css" rel="stylesheet" type="text/css" />

<style>
  content table tr td{
    background:#e2e2e2;
  }
</style>

<?php 
  $list = $this->list;
  
//  Zend_Debug::dump($list);
?>
 <div id="content">
     <section class="grid_9" id="dashtabs" style="width:98%;min-height:400px;">
        <div class="box-header">
          Danh sách các môn học
          
        </div>
        <div id="dashtabs-pages" class="box-content no-padding" >
          <table class="table no-border">
            <thead style="width:100%;">
              <tr>
                <td width="5%" align="center">STT</td>
                <td width="20%" align="center">Môn học</td>
                <td width="5%" align="center">Mã môn học</td>
                <td width="5%" align="center">Số tín chỉ</td>
                <td width="5%" align="center">Phòng học</td>
                <td width="5%" align="center">Học kì</td>
                <td width="15%" align="center">Tên giáo viên </td>
                </tr>
            </thead>
            <tbody>
              
              <?php 
              //  Zend_Debug::dump($list);die;
                if(isset($list) && count($list)){
                  $i=1;
                  foreach ($list as $key => $value) {
                    ?>
                    <tr>
                        <td align="center"><?php echo $i; ?></td>
                       <td align="center"><a href='<?php echo DOMAIN_INDEX ?>/student/show-exercise?s_id=<?php echo $value["id"] ?>'><?php echo $value["name"] ?></a></td>
                        <td align="center"><?php echo $value["code"] ?></td>
                        <td align="center"><?php echo $value["weight"] ?></td>
                        <td align="center"><?php echo $value["r_name"] ?></td>
                        <td align="center"><?php echo $value["s_name"] ?></td>
                        <td align="center"><?php echo $value["t_name"] ?></td>
                      </tr>
                    <?php 
                    $i++;
                  }
                }
              ?>
            </tbody>
          </table>
        </div>
        
        <div class="box-footer"> <span class="txt-smaller txt-light">Showing 5 results of 153</span>
          <ul class="pagination">
            <li><a title="Previous" href="#">&lt; Prev</a></li>
            <li><a class="current" title="Page 1" href="#">1</a></li>
            <li><a title="Page 2" href="#">2</a></li>
            <li><a title="Page 3" href="#">3</a></li>
            <li><a title="Next" href="#">Next &gt;</a></li>
          </ul>
      </div>
    </section>    
            
 </div> <!-- END of content -->








